package com.yuanian.ecsplus.platform;

import com.yuanian.businessobject.model.vo.base.BOSaveOrUpdateParam;
import com.yuanian.businessobject.model.vo.bodefine.BODefineSetupVO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TestPlatformSupport implements PlatformSupport {

    @Override
    public Map selectBoDataByBoMainId(String apiName, String apiVersionNumber, String boMainId) {
        return null;
    }

    @Override
    public Map selectBoDataByBoDataId(String apiName, String apiVersionNumber, String boDataId) {
        Map map = new HashMap();
        map.put("type", "333");
        map.put("sex", "444");
        map.put("address", "555");
        return map;
    }

    @Override
    public List<Map> selectBoDataList(String apiName, String apiVersionNumber, String sql) {
        return null;
    }

    @Override
    public List<Map> selectBoDataList(String apiName, String apiVersionNumber, String sql, int limit, int offset, boolean totalResults, String orderBy) {
        return null;
    }

    @Override
    public Map insertBoData(String apiName, String apiVersionNumber, Map boData) {

        System.out.println("----insert------" + apiName + ":" + boData);
        Map map = new HashMap();
        map.put("companyName", "xxxxx");
        return map;
    }

    @Override
    public Map issueBoData(String apiName, String apiVersionNumber, Map boData) {
        System.out.println("----issueBoData------" + apiName + ":" + boData);
        return null;
    }

    @Override
    public Map updateBoData(String apiName, String apiVersionNumber, String boMainId, Map boData) {
        System.out.println("----updateBoData------" + apiName + ":" + boData);
        return null;
    }

    @Override
    public int deleteByBoMainId(String apiName, String apiVersionNumber, String boMainId) {
        System.out.println("----delete------" + apiName + ":" + boMainId);
        return 0;
    }

    @Override
    public Map createBoData(String apiName, Map initData) {
        return null;
    }

    @Override
    public void boMapFullDataConvert(Map boData, String apiName) {

    }

    @Override
    public Integer batchInsertBoData(String apiName, String apiVersionNumber, List<Map> dataList) {
        return null;
    }

    @Override
    public Integer batchUpdateBoDataById(String apiName, String apiVersionNumber, List<Map> dataList) {
        return null;
    }

    @Override
    public Integer batchDeleteBoDataById(String apiName, String apiVersionNumber, List<String> idList) {
        return null;
    }

    @Override
    public void batchdeleteFile(List<String> ids) {

    }

    @Override
    public void saveOrUpdate(String apiName, String apiVersionNumber, List<Map> dataList, Map logicalKey, BOSaveOrUpdateParam saveOrUpdateParam) {

    }

    @Override
    public BODefineSetupVO getSetup(String apiName) {
        return null;
    }

}
